package org.swqsbssddqs.shortlink.project.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.swqsbssddqs.shortlink.project.dao.entity.ShortLinkDO;
import org.swqsbssddqs.shortlink.project.dto.req.ShortLinkPageReqDTO;

public interface ShortLinkMapper extends BaseMapper<ShortLinkDO> {
    void uVpVipVIncrement(@Param("gid") String gid,
                          @Param("fullShortUrl") String fullShortUrl,
                          @Param("totalPv") Integer totalPv,
                          @Param("totalUv") Integer totalUv,
                          @Param("totalUip") Integer totalUip);

    IPage<ShortLinkDO> selectShortLinkPage(ShortLinkPageReqDTO shortLinkPageReqDTO);
}
